﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;

namespace 人事工资管理系统
{
    public partial class frmUserCheck : Form
    {
        public frmUserCheck()
        {
            InitializeComponent();
        }
        PMSClass.DBOperate operate = new PMSClass.DBOperate();
        SqlConnection conn = PMSClass.DBConnection.MyConnection();
        private void toolStripLabel1_Click(object sender, EventArgs e)
        {
            frmAddUserCheck AddUserCheck = new frmAddUserCheck();
            AddUserCheck.ShowDialog();
        }

        private void toolStripLabel3_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void toolStripLabel2_Click(object sender, EventArgs e)
        {
            frmUserCheckChange UserCheckChange = new frmUserCheckChange();
            UserCheckChange.ShowDialog();
        }

        private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            frmUserCheckChange UserCheckChange = new frmUserCheckChange();
            UserCheckChange.ShowDialog();
        }

        private void frmUserCheck_Load(object sender, EventArgs e)
        {
            string getJFstr = "select PID as '员工编号',PName as '员工姓名',PDep as '所属部门',PKpcontent as '考评内容',PKpResult as '考评结果',PKpscore as '考评分数',PKpPeople as '考评人',PKpDate as '考评日期' from tb_check";
            operate.BindDataGridView(dataGridView1, getJFstr);
        }
    }
}
